package com.myhome.constant;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author QYiXin
 * @Date 2021 10 05 13 17
 **/
@Data
public class LoginConstant {
    public static final String ADMIN_TYPE = "adminLogin";
    public static final String MEMBER_TYPE = "memberLogin";
    public static final String SELECT_ID = "select su.id from sys_user su where su.username=?";
    public static final String SELECT_ADMIN_INFO = "select id,password from sys_user su where su.id=?";
    public static final String SELECT_PRIVILEGE_BY_ID = "select sp.name from sys_user_role sur,sys_role_privilege srp,sys_privilege sp where sur.role_id=srp.role_id and srp.privilege_id=sp.id and sur.user_id=?";
    public static final String GRANT_TYPE = "refresh_token";
    public static final String SELECT_USER_INFO = "select id,password from user where email = ? or mobile = ?";
    public static final String SELECT_ADMIN_USERNAME = "select username from sys_user where id = ?";
    public static final String SELECT_MEMBER_USERNAME = "select username from user where id = ?";
}
